<?php if( $list_values->getStatusId() == MyConstants::STATUS_DELETED): ?>
    <?php if( $sf_params->has('page') ):?>
        <?php echo link_to(__('enable'), 'listvalues/enable?id=' . $list_values->getId(). '&page=' . $sf_request->getParameter('page')) ?>
    <?php else: ?>
        <?php echo link_to(__('enable'), 'listvalues/enable?id=' . $list_values->getId()) ?>
    <?php endif;?>
<?php else: ?>
    <?php if( $sf_params->has('page') ):?>
        <?php echo link_to(__('disable'), 'listvalues/enable?id=' . $list_values->getId() . '&page=' . $sf_request->getParameter('page')) ?>
    <?php else: ?>
        <?php echo link_to(__('disable'), 'listvalues/disable?id=' . $list_values->getId()) ?>
    <?php endif;?>
<?php endif; ?>